<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑分类</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/public.css" media="all" />
    <style>
        .magb10{
            margin-bottom: 10px;
        }
        td {
            height: 200px;
        }
    </style>
</head>
<body class="childrenBody">
<form class="layui-form layui-row layui-col-space10" id="a-form" style="margin-top: 50px;">

    <div class="layui-col-md12 layui-col-xs12">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md6 layui-col-xs7 layui-col-lg-offset3">
                <input type="hidden" name="id" id="id">
                <div class="layui-form-item magt3">
                    <label class="layui-form-label">分类名称</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input name" name="name"  placeholder="请输入分类名称">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分类描述</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input description" name="description"  placeholder="分类描述">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分类预览图</label>
                    <div class="layui-form-file">
                        <input type="hidden" class="iconUrl" name="iconUrl" id="picUrl">
                        <input type="file" id="file" name='file'>
                        <br/>
                        <br/>
                        <div class="layui-col-md12">
                            <div class="layui-upload-list thumbBox mag0 magt3" name="thumbBox">
                                <img class="layui-upload-img iconUrlDisplay" style='width: 163px' name="activityPic">
                            </div>
                        </div>
                    </div>

                </div>

                <br/>
                <a class="layui-btn layui-btn-md" style="margin-left: 200px; margin-top:50px; width: 170px; text-align: center;" lay-filter="d-update" lay-submit>保存</a>
            </div>
        </div>

    </div>

</form>
<script src="../../../js/ip.js"></script>
<script src="../../../js/jquery-1.11.1.js"></script>
<script src="../../../js/jquery.cookie.js"></script>
<script src="../../layui/layui.js"></script>
<script type="text/javascript" src="class-edit.js"></script>
</body>
</html>